From e774367afc7d25bb356a956711715293013be782 Mon Sep 17 00:00:00 2001 From: Behnam Esfahbod Date: Mon, 7 Aug 2017 11:26:53 -0700 Subject: [PATCH] [docs] Wrap long lines --- src/doc/guide.md | 18 ++++++++++++------ src/doc/manifest.md | 12 ++++++++---- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/src/doc/guide.md b/src/doc/guide.md index 897db6575..39b25c2f4 100644 --- a/src/doc/guide.md +++ b/src/doc/guide.md @@ -12,7 +12,8 @@ To accomplish this goal, Cargo does four things: * Introduces two metadata files with various bits of project information. * Fetches and builds your project’s dependencies. -* Invokes `rustc` or another build tool with the correct parameters to build your project. +* Invokes `rustc` or another build tool with the correct parameters to build + your project. * Introduces conventions to make working with Rust projects easier. # Creating a new project @@ -89,7 +90,8 @@ Hello, world! You’ll now notice a new file, `Cargo.lock`. It contains information about our dependencies. Since we don’t have any yet, it’s not very interesting. -Once you’re ready for release, you can use `cargo build --release` to compile your files with optimizations turned on: +Once you’re ready for release, you can use `cargo build --release` to compile +your files with optimizations turned on:
$ cargo build --release
 `. They are compiled when you run
-your tests to protect them from bitrotting.
+They can compile either as executables (with a `main()` function) or libraries
+and pull in the library by using `extern crate `. They are
+compiled when you run your tests to protect them from bitrotting.
 
 You can run individual executable examples with the command `cargo run --example
 `.
@@ -547,7 +550,8 @@ name = "foo"
 crate-type = ["staticlib"]
 ```
 
-You can build individual library examples with the command `cargo build --example `.
+You can build individual library examples with the command
+`cargo build --example `.
 
 # Tests
 
-- 
2.30.2